<script setup lang="ts">
  import { inject } from 'vue';
  import ApiService from './../api/index'

  // 刷新页面
  const reload = inject('reload') as () => void;

  // 请求测试
  const click1 = async () => {
    const data = await ApiService.getPublicConfig()

    console.log('2', data)
  }
</script>

<template>
  <main>
    <div @click="reload">点我刷新！！！！！！</div>
    <div @click="click1">点我测试请求啊！！！！！！</div>
  </main>
</template>

<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>